/**
 * 用户相关模型定义
 */

// 用户登录请求参数
export interface LoginParams {
  account: string;
  password: string;
}

// 用户注册请求参数
export interface RegisterParams {
  account: string;
  password: string;
  username: string;
}

// 用户基本信息
export interface UserInfo {
  id: number;
  account: string;
  username: string;
  avatar?: string;
  description?: string;
  role?: string;
  createTime?: string;
  updateTime?: string;
  ip?:string;
}

// 登录响应结果
export interface LoginResult {
  code: number;
  message: string;
  data: {
    token: string;
    userInfo: UserInfo;
  } | null;
  success: boolean;
}